﻿using SqlSugar;

namespace _RobotInspection.Entities
{
    public class repair_plan
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public repair_plan()
        {

        }

        /// <summary>
        /// 自增主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long id { get; set; }

        /// <summary>
        /// 点检记录ID
        /// </summary>
        public long record_id { get; set; }

        /// <summary>
        /// 维修人ID
        /// </summary>
        public long user_id { get; set; }

        /// <summary>
        /// 维修计划名称
        /// </summary>
        public string plan_name { get; set; }

        /// <summary>
        /// 维修状态：0-检修未开始，1-待检修，2-检修完成，3-检修待跟进，4-检修逾期，5-检修取消
        /// </summary>
        public byte? status { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        public string? remark { get; set; }

        /// <summary>
        /// 维修开始时间
        /// </summary>
        public DateTime? beginning_time { get; set; }

        /// <summary>
        /// 维修结束时间
        /// </summary>
        public DateTime? ending_time { get; set; }

        /// <summary>
        /// 维修图片路径
        /// </summary>
        public string? picture_path { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? created_at { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? updated_at { get; set; }
    }
}
